$(function(){

    $("#username").change(function (){
        var username = $("#username").val();
        $.get("/employee/queryPortraitByUsername",{'username': username},function(data){
            $("#portrait").prop("src",data.portrait);
        })
    });
})